package com.education.platform.dao;

import com.education.platform.common.dao.BaseDao;
import com.education.platform.dao.model.ExaminPaperModel;
import org.springframework.stereotype.Repository;
import com.education.platform.dao.entity.ExaminPaperDO;

import java.util.List;

/**
* describe: 试卷
* @author : 
* @date: 2020-07-15 08:43:11.650
**/
@Repository
public interface ExaminPaperDao extends BaseDao<ExaminPaperDO> {


    /**
     * 获取试卷列表
     * @param userId
     * @param gradeCode
     * @return
     */
    List<ExaminPaperModel> getPaperList(Integer userId,String gradeCode);

    /**
     * 增加购买次数
     * @param id
     * @return
     */
    int incUsageTimes(Integer id);

}